package com.atmaowei.service;

import com.atmaowei.controller.request.TeacherOfTeacherPageRequest;
import com.atmaowei.entity.Course;
import com.atmaowei.entity.Student;
import com.atmaowei.entity.StudentAndGrade;
import com.atmaowei.entity.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TeacherOfTeacherService {


    String getCnoByCname(String cname);

    PageInfo<StudentAndGrade> page(TeacherOfTeacherPageRequest teacherOfTeacherPageRequest);

    List<Course> getCourse(String tno);

    String getCnameByCno(String cno);

    Teacher getTeacherInfo(String tno);

    void update(Teacher teacher);

    boolean checkPassword(String tno,String password);

    void updatePassword(String tno, String password);

    void giveGrade(String sno, String cno, String tno, String grade);
}
